/**
 * 
 */
package com.wixc.service.impl;

import java.sql.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wixc.entity.NewBean;
import com.wixc.mapper.NewMapper;
import com.wixc.service.NewService;

/**
 * @author weichuanxi
 * @date 2016年4月12日
 */
@Service
public class NewServiceImpl implements NewService {
	@Autowired NewMapper newMapper;
	
	public void save(NewBean newBean) {
		this.newMapper.save(newBean);
	}

	public List<NewBean> selectByTypeId_Top7(int id) {
		return this.newMapper.selectByTypeId_Top7( id);
	}
	public List<NewBean> selectByTypeIdAjax(int page,int id) {
		return this.newMapper.selectByTypeIdAjax(page,id);
	}

	/* (non-Javadoc)
	 * @see com.wixc.service.NewService#selectById(int)
	 */
	public List<NewBean> selectById(int id) {
		return this.newMapper.selectById( id);
	}

	public List<NewBean> selectByTypeId_Top(int id) {
		return this.newMapper.selectByTypeId_Top( id);
	}

	/* (non-Javadoc)
	 * @see com.wixc.service.NewService#selectEveryTypeTop10()
	 */
	public List<NewBean> selectEveryTypeTop10() {
		return this.newMapper.selectEveryTypeTop10();
	}

	public List<NewBean> selectByTypeId_Page(int typeid, int page) {
		return this.newMapper.selectByTypeId_Page(typeid,page);
	}

	public List<NewBean> selectByTypeId_sdate_edate(int typeid,int page, String sdate, String edate) {
		return this.newMapper.selectByTypeId_sdate_edate(typeid,page,sdate,edate);
	}

	public void batchDelete(Integer id) {
		this.newMapper.batchDelete(id);
	}

	public void setHotNew(int parseInt) {
		
		this.newMapper.setHotNew(parseInt);
	}
	public List<NewBean> selectCircle() {
		return this.newMapper.selectCircle();
	}

	public List<NewBean> selectByPage(int page) {
		return this.newMapper.selectByPage(page);
	}

	public List<NewBean> selectByDate(String string) {
		return	 this.newMapper.selectByDate(string);
	}


}
